package com.ssm.zhihu_ssm.dao;

import com.ssm.zhihu_ssm.entity.Letter;
import com.ssm.zhihu_ssm.entity.LetterReturn;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface LetterDao {
    List<LetterReturn> findLetterReturn(int id); //最近一条消息
    List<Letter> findLetterWith(int uid,int fromId ); //与某人所有消息

    void delectLetters(int id);
    Letter findLettersID(int id);
    void  addLetter(Letter letter);
}
